import request from '@/utils/request'

// 查询个人客户列表
export function listCustomerPerson(query) {
  return request({
    url: '/work/customerPerson/list',
    method: 'get',
    params: query
  })
}

// 查询个人客户详细
export function getCustomerPerson(id) {
  return request({
    url: '/work/customerPerson/' + id,
    method: 'get'
  })
}

// 新增个人客户
export function addCustomerPerson(data) {
  return request({
    url: '/work/customerPerson',
    method: 'post',
    data: data
  })
}

// 修改个人客户
export function updateCustomerPerson(data) {
  return request({
    url: '/work/customerPerson',
    method: 'put',
    data: data
  })
}

// 修改个人客户
export function changeStatus(data) {
  return request({
    url: '/work/customerPerson/changeStatus',
    method: 'put',
    data: data
  })
}

// 删除个人客户
export function delCustomerPerson(id) {
  return request({
    url: '/work/customerPerson/' + id,
    method: 'delete'
  })
}
